<?php 

echo $_SERVER['SCRIPT_NAME'];
echo "<br />";
var_dump(dirname($_SERVER['PHP_SELF']) . '/');

phpinfo();
?>